hackerrank pattern solution

join shbcf.ru